/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const baseRouter = {
  path: '/base',
  component: Layout,
  redirect: 'noRedirect',
  name: 'base',
  meta: {
    title: '基础资料',
    icon: 'component'
  },
  children: [
    {
      path: 'provider',
      component: () => import('@/views/base/provider/index'),
      name: 'provider',
      meta: {title: '供应商管理'}
    },
    {
      path: 'provider/saveorupdate',
      component: () => import('@/views/base/provider/SaveOrUpdate'),
      name: 'OptProvider',
      hidden: true,
      meta: {title: '供应商档案'}
    }
  ]
}

export default baseRouter
